package com.boot2.core.dao.mybatis;

import com.boot2.core.utils.StringUtils;

import java.io.Serializable;


/**
 * dao里mybatis对象
 * 
 * @author zhangweilin
 * @date 2016年4月21日 下午5:28:51
 * @version V1.0
 * @description
 */
public class MyBatisType implements Serializable
{
    /**
     * @Fields serialVersionUID :
     */
    private static final long serialVersionUID = 4223884509941096413L;

    private String property;

    private String sign;

    private String cloumn;

    private String jdbcType;

    public String getSign()
    {
        return StringUtils.isNotEmpty(sign) ? sign : "=";
    }

    public void setSign(String sign)
    {
        this.sign = StringUtils.isNotEmpty(sign) ? sign : "=";
    }

    public String getCloumn()
    {
        return cloumn;
    }

    public void setCloumn(String cloumn)
    {
        this.cloumn = cloumn;
    }

    public String getJdbcType()
    {
        return jdbcType;
    }

    public void setJdbcType(String jdbcType)
    {
        this.jdbcType = jdbcType;
    }

    public String getProperty()
    {
        return property;
    }

    public void setProperty(String property)
    {
        this.property = property;
    }

    @Override
    public String toString()
    {
        return "MyBatisType [property=" + property + ", sign=" + sign + ", cloumn=" + cloumn + ", jdbcType=" + jdbcType + "]";
    }

}
